<?php
/**
 * the renren exception
 * 
 * @author tom.wang<tom.wang.sz@qq.com>
 */
class RenrenException extends Exception {
	public function __construct($msg = '', $code = 0) {
		parent::__construct($msg, $code);
	}
	
	public function throwEx($msg = '', $code = 0) {
		throw new self($msg, $code);
	}
	
	public function __toString() {
		return parent::__toString();
	}
}
?>